Optimal. Leaf size=71 \[ \frac{\left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^{p+1}}{b n (p+1)}-\frac{e r \left (a+b \log \left (c x^n\right )\right )^{p+2}}{b^2 n^2 (p+1) (p+2)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.155253, antiderivative size = 71, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {2302, 30, 2366, 12} \[ \frac{\left (d+e \log \left (f x^r\right )\right ) \left (a+b \log \left (c x^n\right )\right )^{p+1}}{b n (p+1)}-\frac{e r \left (a+b \log \left (c x^n\right )\right )^{p+2}}{b^2 n^2 (p+1) (p+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2302
Rule 30
Rule 2366
Rule 12
Rubi steps
\begin{align*} \int \frac{\left (a+b \log \left (c x^n\right )\right )^p \left (d+e \log \left (f x^r\right )\right )}{x} \, dx &=\frac{\left (a+b \log \left (c x^n\right )\right )^{1+p} \left (d+e \log \left (f x^r\right )\right )}{b n (1+p)}-(e r) \int \frac{\left (a+b \log \left (c x^n\right )\right )^{1+p}}{b n (1+p) x} \, dx\\ &=\frac{\left (a+b \log \left (c x^n\right )\right )^{1+p} \left (d+e \log \left (f x^r\right )\right )}{b n (1+p)}-\frac{(e r) \int \frac{\left (a+b \log \left (c x^n\right )\right )^{1+p}}{x} \, dx}{b n (1+p)}\\ &=\frac{\left (a+b \log \left (c x^n\right )\right )^{1+p} \left (d+e \log \left (f x^r\right )\right )}{b n (1+p)}-\frac{(e r) \operatorname{Subst}\left (\int x^{1+p} \, dx,x,a+b \log \left (c x^n\right )\right )}{b^2 n^2 (1+p)}\\ &=-\frac{e r \left (a+b \log \left (c x^n\right )\right )^{2+p}}{b^2 n^2 (1+p) (2+p)}+\frac{\left (a+b \log \left (c x^n\right )\right )^{1+p} \left (d+e \log \left (f x^r\right )\right )}{b n (1+p)}\\ \end{align*}
Mathematica [A] time = 0.138806, size = 71, normalized size = 1. \[ \frac{\left (a+b \log \left (c x^n\right )\right )^{p+1} \left (-a e r-b e r \log \left (c x^n\right )+b d n p+2 b d n+b e n (p+2) \log \left (f x^r\right )\right )}{b^2 n^2 (p+1) (p+2)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.277, size = 854, normalized size = 12. \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.824167, size = 518, normalized size = 7.3 \begin{align*} -\frac{{\left (b^{2} e r \log \left (c\right )^{2} - a b d n p - 2 \, a b d n + a^{2} e r -{\left (b^{2} e n^{2} p + b^{2} e n^{2}\right )} r \log \left (x\right )^{2} -{\left (b^{2} d n p + 2 \, b^{2} d n - 2 \, a b e r\right )} \log \left (c\right ) -{\left (a b e n p + 2 \, a b e n +{\left (b^{2} e n p + 2 \, b^{2} e n\right )} \log \left (c\right )\right )} \log \left (f\right ) -{\left (b^{2} e n p r \log \left (c\right ) + b^{2} d n^{2} p + a b e n p r + 2 \, b^{2} d n^{2} +{\left (b^{2} e n^{2} p + 2 \, b^{2} e n^{2}\right )} \log \left (f\right )\right )} \log \left (x\right )\right )}{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p}}{b^{2} n^{2} p^{2} + 3 \, b^{2} n^{2} p + 2 \, b^{2} n^{2}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.34044, size = 332, normalized size = 4.68 \begin{align*} \frac{\frac{{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p + 1} e \log \left (f\right )}{p + 1} + \frac{{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p + 1} d}{p + 1} - \frac{{\left ({\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p} b p \log \left (c\right ) -{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{2}{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p} p +{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p} a p + 2 \,{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p} b \log \left (c\right ) -{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{2}{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p} + 2 \,{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}{\left (b n \log \left (x\right ) + b \log \left (c\right ) + a\right )}^{p} a\right )} r e}{{\left (p^{2} + 3 \, p + 2\right )} b n}}{b n} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]